﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="adminSubmitPrice.aspx.cs"
    Inherits="PeisongWeb.admin.adminSubmitPrice" %>

<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>后台商品报价 - 想购网长期采购物流配送系统</title>
    <!--#include file="style.inc"-->

    <script src="/app_common/scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../app_common/scripts/jquery.blockUI.js" type="text/javascript"></script>

    <script src="/app_common/scripts/javascript.serialize.js" type="text/javascript"></script>

    <script src="scripts/adminSubmitPrice.js?3.2.5" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="ResourceManager1"></asp:ScriptManager>
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <p>&nbsp;&nbsp;</p>
        <h2 class="section-cms">
            后台商品报价
        </h2>
        <asp:UpdatePanel runat="server" ID="UpdatePanel1">
            <ContentTemplate>
                <ext:Panel ID="Panel1" runat="server" Title="查询搜索" BodyStyle="padding:5px 5px 0"
                    Width="960px" Frame="true" ButtonAlign="Center">
                    <Body>
                        <div id="admin_edit_content_search">
                            <ul>
                                <li style="width: auto; margin-right: 20px;">
                                    <label style="width: 85px;">
                                        企业名称：</label>
                                    <asp:DropDownList runat="server" ID="ddlCompany" DataTextField="company" 
                                        DataValueField="companyId" AutoPostBack="True" 
                                        onselectedindexchanged="ddlCompany_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </li>
                                <li style="width: auto; margin-right: 20px">
                                    <label>
                                        商品名称
                                    </label>
                                    <asp:TextBox runat="server" ID="txt_proName"></asp:TextBox>
                                </li>
                                <li style="width: auto; margin-right: 10px;">[<asp:LinkButton runat="server" ID="btnAnalysis"
                                    Text="搜索" OnClick="btnAnalysis_Click"></asp:LinkButton>] </li>
                            </ul>
                        </div>
                    </Body>
                </ext:Panel>
                <p>
                    &nbsp;</p>
                <div id="admin_list_content">
                    <table cellpadding="0" cellspacing="0">
                        <tr class="header-row">
                            <th width="10%">
                                商品编号
                            </th>
                            <th width="20%">
                                商品名称
                            </th>
                            <th width="15%">
                                当前供应价格
                            </th>
                            <th width="15%">
                                当前供应状态
                            </th>
                            <th width="15%">
                                供应操作
                            </th>
                            <th width="25%">
                                操作
                            </th>
                        </tr>
                        <asp:Repeater runat="server" ID="rpt_list" OnItemDataBound="rpt_list_ItemDataBound">
                            <ItemTemplate>
                                <tr class='row-alt'>
                                    <td>
                                        <%#DataBinder.Eval(Container.DataItem,"productNo") %>
                                    </td>
                                    <td>
                                        <%#DataBinder.Eval(Container.DataItem, "productName")%><a href="javascript:void(showProductDetail('user_productDetail_<%#Eval("productId")%>.html', 700,500));">
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td align="right">
                                        <input type="button" value=" 保 存 " onclick="return clientSubmitPrice(this,<%#DataBinder.Eval(Container.DataItem,"productId") %>);" />
                                    </td>
                                </tr>
                                <asp:Repeater runat="server" ID="rpt_Seller_Price">
                                    <ItemTemplate>
                                        <tr class='alt product_<%#DataBinder.Eval(Container.DataItem,"productId") %>'>
                                            <td>
                                            </td>
                                            <td align="center">
                                                <%#DataBinder.Eval(Container.DataItem, "businessNatureName")%>
                                            </td>
                                            <td>
                                                <span style="color: #fa0101;">
                                                    <%#DataBinder.Eval(Container.DataItem, "sellerPrice","{0:F2}")%></span>
                                            </td>
                                            <td>
                                                <%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"isCancel"))?"取消中":"供应中" %>
                                            </td>
                                            <td>
                                                [<a href="javascript:void(0);" onclick="supplyOperate(this,<%#DataBinder.Eval(Container.DataItem,"srId") %>)"
                                                    style="color: <%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"isCancel"))?"#f00":" #54862c" %>"><%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"isCancel"))?"继续供应":"取消供应" %></a>]
                                            </td>
                                            <td>
                                                <input type="text" bn='<%#DataBinder.Eval(Container.DataItem,"businessNature") %>'
                                                    maxlength="8" size="4" />&nbsp;元/<label><%#DataBinder.Eval(Container.DataItem,"unit") %></label>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                    <div id="page">
                        <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                            OnPageChanged="AspNetPager1_PageChanged" runat="server" AlwaysShow="True" PageSize="20"
                            InvalidPageIndexErrorMessage="无效页码" PageIndexOutOfRangeErrorMessage="页码超出范围"
                            ShowCustomInfoSection="Left" CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 "
                            CustomInfoTextAlign="Left" HorizontalAlign="Right" NextPageText="下一页" FirstPageText="首页"
                            LastPageText="末页" PrevPageText="上一页">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
